Hello Arduino Forum
,
I’m currently working on a water and air quality monitoring system using an ESP32. In this project, I want to combine a TCS3200 color sensor with MQ-9 and MQ-135 gas sensors.
- TCS3200 → to read water color (e.g., clear, cloudy, brown, or black).
- MQ-9 → to detect CO/flammable gases.
- MQ-135 → to detect air quality (harmful gases like NH₃, CO₂, smoke, etc.).
My goal is to build a simple monitoring system that can:
- Read water color values from the TCS3200.
- Read gas values from MQ-9 and MQ-135 simultaneously.
- Combine all readings into a single output (for example, displayed on the serial monitor or LCD).
- (Future plan) Send the data to a database/website for further processing.
Hardware I’m using:
- ESP32 DevKit v1
- TCS3200 color sensor
- MQ-9 and MQ-135 gas sensors
- Breadboard + jumper wires
- Arduino IDE
My questions are:
- Has anyone here ever tried combining the TCS3200 with MQ gas sensors?
- Are there any specific issues to consider, such as possible interference (since MQ sensors heat up, while TCS3200 is light-sensitive)?
- For MQ-9 and MQ-135 readings, should I mainly focus on relative changes rather than absolute PPM values?
- Does anyone have a simple example code for reading these three sensors simultaneously with an ESP32?
Thanks in advance
. I hope this discussion can also help others who are trying to integrate color and gas sensors in one system.