Programming the ESP32 microcontroller to send sensor data
ESP32 is a low-cost, low-power microcontroller chip and the successor of the ESP8266 microcontroller. In this chapter, we will be using the Heltec ESP32 + LoRa, which is an ESP32 microcontroller plus the capability to use the LoRa wireless protocol. This microcontroller can also send and receive data using the LoRa wireless protocol using the integrated SX1276 chip in this Heltec dashboard.
Before configuring our device, we have to do the following:
- Connect the DHT11 sensor to the Heltec ESP32 + LoRa device.
- Install the USB to UART bridge driver.
- Install and configure Arduino IDE to program the Heltec ESP32 + LoRa device.
- Flash the Heltec ESP32 + Lora device.
So, let’s get started by connecting a DHT11 sensor to our Heltec ESP32 + Lora device.
Configuring Heltec ESP32 + LoRa to read DHT11 sensor data
Heltec devices are often used for IoT, and ESP32 is a very popular device for IoT and...