I’m having an occassional problem with a sketch I’m running that controls switching between a heat pump & a gas boiler in a domestic setting.
I’m using a DS18B20 temp sensor to monitor inside room temp.
Occassionally, the inside room temp reported by the sensor jumps from around 24 degrees C to 85 degrees C!!
Sometimes it’s a transient that returns to normal during the next pass through the the Dallas Temperature routine & at other times it stays at the 85 degree C level.
The only way I can clear this non-transient problem currently is by a manual reset of the Arduino Uno; which is not convenient if there’s no PC connected to the Arduino, which there isn’t when running normally.
The only way I can see this problem is when I’m monitoring the sketch using a PC.
Is there any way to reset the Uno from within the sketch from within either the Dallas Temperature routine or from within an ‘IF’ loop?