story
https://www.stavros.io/posts/building-cheap-home-sensorcontr...
I used an ESP8266 with cheapo sensors, the whole board costs like $5 or something. The software is pretty ad-hoc but is not more than 100 lines of code.