This is the accompanying repository for all source code and additional material for the article series "Environmental Sensor usage with ESP32", published on medium.com.
NOTE: this is a repository that will be updated very frequently in the next weeks, so please be patient if a specific sensor sketch is not available for now !
Parts of the tutorial:
- Overview: https://medium.com/@androidcrypto/environmental-sensor-usage-with-esp32-overview-d436343261c3
- Base Application: https://medium.com/@androidcrypto/esp32-environmental-sensor-base-application-61b08265461f (source code with and without TeamSpeak available)
- AHT10 Sensor (Temperature and Humidity): https://medium.com/@androidcrypto/esp32-environmental-sensor-aht10-temperature-humidity-23b27a4b3cf8
- AHT20 + BMP280 Sensor module (Temperature, Humidity and Air Pressure): coming soon
- DHT11 Sensor (Temperature and Humidity): https://medium.com/@androidcrypto/esp32-environmental-sensor-dht11-temperature-humidity-3d48060e98e0
- DHT22 Sensor (Temperature and Humidity): https://medium.com/@androidcrypto/esp32-environmental-sensor-dht22-temperature-humidity-d5a7d2d9cd57
- BME280 Sensor (Temperature, Humidity and Air Pressure): https://medium.com/@androidcrypto/esp32-environmental-sensor-bme280-temperature-humidity-pressure-914122659582
- BME280 Sensor Bonus Measure the Altitude of the sensor: https://medium.com/@androidcrypto/esp32-environmental-sensor-bme280-measures-the-altitude-5a847073376a
- BMP280 Sensor (Temperature and Air Pressure): https://medium.com/@androidcrypto/esp32-environmental-sensor-bmp280-temperature-pressure-9816187aa754
- BME680 Sensor (Temperature, Humidity, Air Pressure and Air Quality Data): coming soon
- DS18B20 Sensor (Temperature in Waterproof cover): https://medium.com/@androidcrypto/esp32-environmental-sensor-ds18b20-temperature-53dda02250a7
- AGS02MA Sensor (Total volatile organic compounds "TVOC" for Air Quality): coming soon
- AGS10 Sensor (Total volatile organic compounds "TVOC" for Air Quality): coming soon
- BME680 Sensor (Indoor Air Quality "IAQ"): coming soon
Bonus - using ESP-NOW to retrieve the data from remote places: coming soon
For each tutorial you will find a subfolder with all material needed to follow the tutorial.
ESP32 I2C-Bus Scanner: https://medium.com/@androidcrypto/esp32-i2c-bus-scanner-1ac88f6ffd86 (source code: https://github.com/AndroidCrypto/ESP32_I2C_Bus_Scanner)
ESP32 Add a long term data storage and visualization to your sketch (using ThingSpeak): https://medium.com/@androidcrypto/esp32-add-a-long-term-data-storage-and-visualization-to-your-sketch-using-thingspeak-49bf54f78360
ESP32 Environmental Sensor BME280 measures the Altitude: https://medium.com/@androidcrypto/esp32-environmental-sensor-bme280-measures-the-altitude-5a847073376a (source code: https://github.com/AndroidCrypto/ESP32_Environmental_Sensors/tree/main/Esp32_EnvironmentSensor_BME280_Altitude)
All available data sheets of the sensors are available in the subfolder "datasheets".
Sensor Name | Values retrieved | Interface | Address | Pricing |
---|---|---|---|---|
Basic Sensors | ||||
AHT10 | Temperature, Humidity | I2C | 0x38 (alternative 0x39) | 1.40 € |
AHT20 + BMP280 | Temperature, Humidity, Air Pressure | I2C | AHT20: 0x38 , BMP280: 0x77 | 1.40 € |
BME280 | Temperature, Humidity, Air Pressure | I2C | 0x77 (alternative 0x76) | 3.40 € |
BMP280 | Temperature, Air Pressure | I2C | 0x76 (alternative 0x77) | 1.70 € |
DHT11 | Temperature, Humidity | GPIO | P 18 | 1.20 € |
DHT22 | Temperature, Humidity | GPIO | P 18 | 2.10 € |
DS18B20 | Temperature (waterproof) | GPIO | P 26 | 2.00 € (Set) |
Specialised Sensors | ||||
AGS02MA | Total volatile organic compounds "TVOC" | I2C | 0x1A (changable) | 2.00 € |
AGS10 | Total volatile organic compounds "TVOC" | I2C | 0x1A (changable) | 2.70 € |
BME680 | Indoor Air Quality ("IAQ") | I2C | 0x77 (alternative 0x76) | 6.70 € |