Arduino based incubator - hangs - SOLVED - power supply issues

Crashes can be caused by power supply glitches, or electrical noise, not just software problems. Try monitoring the power source when the outputs switch and check that the relay coil has a flyback diode fitted.