Advertisements

Tag archive for: ESP32

How to use a ESP32 development board to read temperature and humidity from a DH11 sensor

When you have a DHT11 sensor, you will be able to get the temperature and humidity of your environment.

Given that, this post shows how to use ESP32 development board to read temperature and humidity from a DHT11 sensor.

DHT11 sensor connected to ESP32 board

Advertisements

How to use C# to read sensor data from Arduino or ESPx via serial connection

When you have an old Windows machine, you can convert it into an IOT gateway.

So how can we read sensor data with our windows machine? Since our windows machine probably do not have GPIO pins, we can read sensor data via an intermediary device.

For example, we can first attach an Arduino Uno or ESP32 development board as the intermediary device to our windows machine via USB. Given that connection, the intermediary device will read the sensor data and send those values via serial. On our Windows machine, we can then run a program to read those values from serial.

So how can we read sensor data from Arduino or ESPx via serial connection on our Windows machine? Since C# is a programming language for creating windows application, we can use C# to read those data from serial.

Enabling ESP32 Development on Arduino IDE

When you want to implement a low cost IOT solution with bluetooth interface, you can consider using a ESP32 development board. In addition to the bluetooth interface, the ESP32 development board also includes a WiFi interface.

In order to run a program on the ESP32 Development Board, we will need to write our program into the flash memory of the development board. Since it is easy to write code and flash programs with Arduino IDE, it is a good tool to use with the ESP32 Development Board.

In case you need it, this post shows how to enable ESP32 development on Arduino IDE.