My approach is somewhere along the line of the Geo Method (Google it). Prior to traveling, I empty the black tank and flush it out with the grey tank along with the fresh water from the internal tank rinser. When empty, I add back in about 5 gallons of fresh water, add a cap full of Calgon liquid water softener and a cap full of liquid laundry soap (I use Oxy Clean). I also do the same with the gray tank. Traveling with this solution in the tanks has (in the past) kept my sensors working properly. However, we normally sit in one rv park for most of the summer and along the end of our stay, the sensors start acting up. Once we start traveling home and using this solution, the sensors will clean up and start working again.
This also has a side benefit of eliminating any odors from the tanks.
Hope this helps
Ron