Sensors/ Environment

ESP32 Compatible environment Sensors

Every environment sensor in the catalog, each with wiring, specs and code for the ESP32.

30 sensors Wiring diagrams Code for 5 frameworks
Not sure which one fits? Read the buyer's guide Explore our Environment Sensor Guide to monitor temperature, humidity, air quality, and more - essential for weather stations, smart homes, and sustainable tech projects. Read the guide →

All environment sensors

30 sensors
AHT10 Temperature and Humidity SensorAHT10 Temperature and Humidity Sensor I2C$1 → AHT20 Temperature and Humidity SensorAHT20 Temperature and Humidity Sensor I2C$4 → BME280 Temperature and Humidity SensorBME280 Temperature and Humidity Sensor I2C · SPI$7 → BME680 Environmental SensorBME680 Environmental Sensor I2C · SPI$15 → BME688 Environmental SensorBME688 Environmental Sensor I2C · SPI → BMP085 Barometric Pressure SensorBMP085 Barometric Pressure Sensor I2C → BMP180 Barometric Pressure SensorBMP180 Barometric Pressure Sensor I2C → BMP280 Barometric Pressure and Temperature SensorBMP280 Barometric Pressure and Temperature Sensor I2C · SPI$1 → BMP388 / CJMCU-388 Barometric Pressure SensorBMP388 / CJMCU-388 Barometric Pressure Sensor I2C · SPI → DHT11 Temperature and Humidity SensorDHT11 Temperature and Humidity Sensor Analog$2 → DHT20 Temperature and Humidity SensorDHT20 Temperature and Humidity Sensor I2C → DHT21 / AM2301A Temperature and Humidity SensorDHT21 / AM2301A Temperature and Humidity Sensor Analog$5 → DHT22 / AM2302 Temperature and Humidity SensorDHT22 / AM2302 Temperature and Humidity Sensor Analog$5 → DS18B20 Dallas Temperature SensorDS18B20 Dallas Temperature Sensor 1-Wire$2 → HDC1080 / GY-213V-HDC1080 Temperature and Humidity SensorHDC1080 / GY-213V-HDC1080 Temperature and Humidity Sensor I2C$5 → HTE501 Temperature and Humidity SensorHTE501 Temperature and Humidity Sensor I2C → MW33 Digital Temperature and Humidity Sensor ModuleMW33 Digital Temperature and Humidity Sensor Module Analog$3 → SCD41 CO2 Temperature and Humidity SensorSCD41 CO2 Temperature and Humidity Sensor I2C$50 → SHT11 Temperature and Humidity SensorSHT11 Temperature and Humidity Sensor Sensibus → SHT20 Temperature and Humidity SensorSHT20 Temperature and Humidity Sensor I2C$5 → SHT21 / HTU21 / GY-21 / SI7021 Temperature and Humidity SensorSHT21 / HTU21 / GY-21 / SI7021 Temperature and Humidity Sensor I2C$5 → SHT25 Temperature and Humidity SensorSHT25 Temperature and Humidity Sensor I2C$15 → SHT30 Temperature and Humidity SensorSHT30 Temperature and Humidity Sensor I2C$5 → SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity SensorSHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor I2C$6 → SHT35 Temperature and Humidity SensorSHT35 Temperature and Humidity Sensor I2C$10 → SHT40 Temperature and Humidity SensorSHT40 Temperature and Humidity Sensor I2C → SHT41 / SHT41-D / GY-SHT41-D Temperature and Humidity SensorSHT41 / SHT41-D / GY-SHT41-D Temperature and Humidity Sensor I2C$10 → SHT45 Temperature and Humidity SensorSHT45 Temperature and Humidity Sensor I2C → SHT85 Temperature and Humidity SensorSHT85 Temperature and Humidity Sensor I2C$34 → SHTC3 Temperature and Humidity SensorSHTC3 Temperature and Humidity Sensor I2C$4 →

About environment sensors

Most projects here start with one question: do you need humidity and pressure too, or just temperature? For temperature plus humidity over I2C, the SHT40 and its siblings (SHT41, SHT45) are the modern default - small, accurate and simple to wire. The BME280 adds barometric pressure on the same bus, which is why it shows up in so many weather stations, and the BME680 stacks a gas reading on top.

For anything wet or outdoors - soil, ponds, rain, freezers - the DS18B20 waterproof probe on its 1-Wire bus is the standard answer, and several probes can share one pin. The DHT22 and DHT11 still work fine for slow indoor readings on a budget, just with lower accuracy and update rates than the SHT and AHT parts that replaced them. Pressure-only needs are covered by the BMP280 and BMP388.

At a glance
Sensors30
MostlyI2C (24 of 30)
Also1-Wire · Analog · SPI · Sensibus
Typical price$1 - $50