Page 1 of 1

One Esp32 for 2 sensors?

Posted: Tue Jul 20, 2021 9:06 pm
by jeffcourtneydba
Noob question... I got a esp32 and I flashed it with esphome to run a ruuvi tag.

I now also want to run a MH-Z19 sensor to monitor Co2. Can I add the MH-Z19 code from the esphome helper code site to the same esp32 and run both the MH-Z19 and ruuvi on it? or do I need 2 separate esp32's?

Thanks,
Jeff

Re: One Esp32 for 2 sensors?

Posted: Thu Jul 29, 2021 4:40 am
by stud
yes its possible

Re: One Esp32 for 2 sensors?

Posted: Sat Aug 07, 2021 7:49 pm
by jhagdorn
You should be able to run 2 of the same type of sensor. Look into: uart_id (Optional, ID): Manually specify the ID of the UART Component if you want to use multiple UART buses.

https://esphome.io/components/sensor/mhz19.html

j