Yes thanks everyone, I didn't understand it at first but I do now. It is definitely the way to go for the temp sensor.
How do I handle the float? Is what I have posted for timing the checking of the float state appropriate or is there another way to handle the float?