For me, rinsing out the tanks (using a spray wand for the black tank) and letting them sit makes the sensors work properly. Putting some cleaner like dishwasher detergent in the water and letting it sit and slosh around would probably also do a nice job...or you can look up the "GEO method" for tank cleaning here for a rather more complicated but apparently quite effective tank cleaning regimen.
There are a number of people who say the sensors never work reliably and hence are useless. I find mine actually work fairly well most of the time and I do find them handy, though not essential. I wonder if the people who say they're useless say that because they've never had ones that work consistently; it strikes me as perhaps the attitude of someone who has a broken gas gauge and says that the gas gauge is not very accurate and you can always figure when to gas up based on mileage since the last fill-up. Those are both true statements, but it doesn't mean that a gas gauge, or a holding tank gauge, is not also handy.