Software is working need three statements done today asap looking to pay 3h or fix price need done today. Dont bid if you cant do now!
If thermostat trips (changes to on off state) turn off element if on, check state every (x, a new textbox) in seconds time and reset if on.
If temp safety trips turn off pump and off element
If temp level from sensor is greater than X (new textbox for the degrees) that can be set, then turn off element and pump