temp= 31 *C
75 %Humidity
It is a must that you have ESP-IDF installed and running on your computer.
For installation instructions follow
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/#step-1-install-prerequisites
and the steps that follow.
Avoid source compilation as it may cause errors
sudo apt update && sudo apt upgrade
sudo apt install git
git clone https://github.com/DhruvaG2000/ESP32_wifiDHT11
cd ~/(your path where you cloned this repo)/ESP32_wifiDHT11
idf.py fullclean
idf.py menuconfig
In menuconfig go to example configuration and press enter. In the next screen enter you WIFI SSD and Password.
idf.py build
-- this is an optional step wherein you may require USB serial permissions to flash into your esp:
sudo chmod 777 /dev/ttyUSB0
The USB0 part may vary in your case so hitting tab will help you there.
idf.py flash monitor
ESP32 | DHT11 |
---|---|
3V3 | VCC |
pin 27 | data |
ground | gnd |
Once the ESP enter monitor mode, it should reach a stage where it will give you connected to WIFI
and it will show its IP.
the next step is simply go to any browser (firefox, Chrome) and paste in the following format
IP_ADDRESS/show
Eg: http://192.168.0.102/show