This guide will cover how to add a temperature/humidity sensor to Home Assistant using MQTT and Circuit Python. It is assumed that you already have a Home Assistant server up and running and that you have already installed the Mosquitto broker Add-on.

No soldering is required for this project, its plug-and-play thanks to the Metro ESP32-S2's STEMMA QT port and the many QT-friendly sensors we've got. Simply plug in the sensor and run the code to make customizable projects with sensing and Home Assistant!

This guide shows you how to configure the SHTC3 Humidity and Temperature sensor for Home Assistant, though other sensors can be used with just a little modification. This particular sensor has a wide range of temperatures, excellent accuracy, has low power consumption and has a Stemma QT port for plug and play without soldering. You can read more about this sensor in our Adafruit Sensirion SHTC3 - Temperature & Humidity Sensor Breakout guide.

For the main board, an ESP32-S2 is used because of the great combination of the built-in WiFi and the StemmaQT, but if you have another board that can connect to WiFi, runs CircuitPython, and can have your sensor wired up to it, that will work as well.

Parts List

Angled shot of Adafruit Metro esp32-s2
What's Metro shaped and has an ESP32-S2 WiFi module? What has a STEMMA QT connector for I2C devices, and a Lipoly charger circuit? What has your favorite Espressif WiFi...
$22.50
In Stock
Adafruit Sensirion SHTC3 Temperature & Humidity Sensor
Sensirion Temperature/Humidity sensors are some of the finest & highest-accuracy devices you can get. And finally, we have some that have a true I2C interface for easy...
$6.95
In Stock
Angled shot of STEMMA QT / Qwiic JST SH 4-pin Cable.
This 4-wire cable is a little over 100mm / 4" long and fitted with JST-SH female 4-pin connectors on both ends. Compared with the chunkier JST-PH these are 1mm pitch instead of...
Out of Stock

Optionally add a battery for mobility or backup protection.

Lithium Ion Polymer Battery 3.7v 1200mAh with JST 2-PH connector
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This...
$9.95
In Stock

This guide was first published on Feb 03, 2021. It was last updated on Jan 27, 2021.

This page (Overview) was last updated on Jan 27, 2021.

Text editor powered by tinymce.