sandeshnepal106/IoT-Based-Environmental-Monitoring-System ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple IoT environmental monitoring project for an ESP32 that reads a DHT22 for temperature and humidity, an LDR for light level, and a simulated MQ 135 sensor using a potentiometer. I want the values sent to ThingSpeak so I can see them logged and updated live in the dashboard.

Please make the code easy to upload to the ESP32, and include clear comments so I can understand what each part does. If anything needs setup in ThingSpeak, include the basic steps in the README too, like where to put the channel ID and API key.

I’d also like the project to be organized cleanly, with the main code ready to run and simple notes on how to wire the sensors to the ESP32. If you need to check current library docs online, go ahead and do that so the code is up to date.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab