I live in an old single family house in New York City. The boiler heating system in the house is far from ideal in the winter. Either it gets unbearably hot in my room during the day to do any work or extremely cold at night making me wake up in the middle of the night.
I have an electric heater in my room which I can turn on and off manually to get the temperature I want in the room but the problem is I don’t want to wake up in the middle of the night to turn on/off this device. My solution is to automatically control the heater based on the current temperature in the room.
My plan is to divide the project to have two different modes: 1) I am calling the first one “target” state where everything will be running on actual hardware (microcontroller, sensor and relay) and 2) the simulation mode where I can run the program on any computer and test out the fundamental logic.

