Sensors and IRs Hub

Sensors and IRs Hub

ESP32-based device that have CO2, VOC, PM sensors. And IR receivers and transivers

  • 8 Jul 2025
  • 3 min read

My aim

While setting up my Homelab, I found one app called Home Assistant, which is far better than the Home app from Apple. It is open source, and it is one of the apps that has a big community. They are adding support to as many products as they are available to do. They most of the time will have any functionality that you can think of.

They have a plugin market, which they also publish their own plugins. One of the most used is ESPHome, which is closely related to this post. It is a beginner-friendly way to program ESP32 chips to work on the Home Assistant. They chose YAML for that, although you can insert C code directly in the YAML code using lambda.

The begginings

I have been playing a bit with some components in a course in my uni, at home I have done lights that will turn on when the Infrared Sensor detects someone moving.

pir

Using a Arduino Uno, a lamp base, When the sensor detects a person entering the room, it will “tell” the relay to light up the bulb.

Later on, after a 25 seconds, it will switch off automatically if there isn’t any movement nearby. As shown as the video above.

Choose the Components

One of the big problems you may encounter when buying as an individual is that you will need to pay more as you are not buying in bulk. You may have fewer options, as some components need to be purchased with a minimum quantity, and you may end up with a knockoff that you may never know is.

Software

3D Printing the casing

Was it worth it?