This project demonstrates the integration of an ESP8266 microcontroller with a CIWEI SCD41 CO2 sensor and a 1.3-inch OLED I2C display. The system reads CO2 concentration, temperature, and humidity from the SCD41 sensor and displays the data on the OLED screen.
- ESP8266: The microcontroller used for reading sensor data and driving the display.
- CIWEI SCD41: A CO2 sensor that also measures temperature and humidity.
- 1.3-inch OLED Display (I2C): An I2C OLED display used to show the sensor readings.
| ESP8266 Pins | SCD41/OLED Pins |
|---|---|
| 3V3 | VCC |
| GND | GND |
| D1 | SCL |
| D2 | SDA |
Note: The SCD41 sensor and the OLED display share the same I2C pins.
-
Clone this repository:
git clone https://github.com/Superior404/sensorstation-small/ cd sensorstation-small -
Install necessary libraries: Ensure you have the following libraries installed in your Arduino IDE:
Adafruit_GFXAdafruit_SSD1306SCD41
-
Upload the code:
- Connect your ESP8266 to your computer.
- Open the code in Arduino IDE.
- Select the correct board and port.
- Upload the code.
-
Connect the hardware:
- Wire the SCD41 sensor and the OLED display to the ESP8266 as per the connections table.
-
Power up:
- Once powered, the system will start displaying CO2 concentration, temperature, and humidity readings on the OLED screen.
This project is provided as-is, without any warranty or guarantee of any kind. The creator of this project is not responsible for any damage that may occur to hardware or property as a result of using or misusing this project.
- Adafruit for their excellent libraries.
- Sensirion for the SCD41 sensor.

