In my project, when the IR sensor sense the "human" in the room, it will activate the lamp and fan. The lamp intensity is due to the outdoor intensity. The higher the light intensity outdoor, the lower the indoor. The fan's speed is due to room temperature, the higher the temperature, the faster it rotate.
Hi! I am working as a hardware designer and embedded programmer. I am good at C and C++ and join many project to design embedded system built by MCU, sensor and motor. I am confident to finish your prohect well.