I want to control my bar fridge with temp sensor and relay,
This is my first project with code, i copied this: https://robojax.com/learn/arduino/?vid=robojax-DHT22_11_TM1637_relay
I want some extra code that will prevent the fridge (ie relay) from going on too often.
For my purposes I want the relay to close if the temp is above 4c, but only if the relay has been off for say 20min or more. FYI this is because my power source does not like to start the compressor when it is hot, so i don't want it cycling if it was just on.