---
title: "Measure the indoor environment with xiao RP2040 and sensor and send it to zabbix"
url: "https://maker.wiznet.io/taylor/projects/Measure-the-indoor-environment-with-xiao-RP2040-and-sensor-and-send-it-to-zabbix/"
markdown_url: "https://maker.wiznet.io/taylor/projects/Measure-the-indoor-environment-with-xiao-RP2040-and-sensor-and-send-it-to-zabbix/md"
type: "UCC: User Created Content"
author: "taylor"
original_author: "taylor"
original_url: "https://zenn.dev/kaede_asatsuki/articles/193ffb276c371c"
published: "2022-03-02"
language: "en"
hardware: ["XIAO RP2040", "CCS811(CO2 Sensor)", "BME280", "WIZnet WIZ850io", "SSD1306"]
likes: 0
views: 217
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Measure the indoor environment with xiao RP2040 and sensor and send it to zabbix

> Measure the indoor environment with xiao RP2040 and sensor and send it to zabbix

Original author: taylor (source: https://zenn.dev/kaede_asatsuki/articles/193ffb276c371c)

## Components

- **XIAO RP2040** x 1: Seeed
- **CCS811(CO2 Sensor)** x 1: DF Robot SEN0339
- **BME280** x 1: SSCI-022361
- **WIZnet WIZ850io** x 1: W5500 ([docs](https://docs.wiznet.io/Product/ioModule/WIZ850io))
- **SSD1306** x 1
- Software: **Adafruit Circuitpython**: XIAO RP2040 with CircuitPython ([docs](https://docs.circuitpython.org/en/latest/README.html))

## Documents and links

- [Try to grow a wired LAN port on](https://akkiesoft.hatenablog.jp/entry/20211203/1638458921)
- [Raspberry Pi Pico --Akii Diary Send to Zabbix while using 1-Wire temperature sensor on](https://akkiesoft.hatenablog.jp/entry/20211210/1639062000)

## Article

Original : <https://zenn.dev/kaede_asatsuki/articles/193ffb276c371c>

## Introduction

I started using the XIAO RP2040 for the keyboard, but since it's a big deal, I thought I'd try using it for something else, and I tried to measure CO2 and so on.

## Purpose

Measure the following environmental data around the desk and in each room to find a guideline for ventilation.

- temperature

- Humidity

- CO2 concentration

The measurement data will be displayed on the OLED, and the values ??will be accumulated using the existing Zabbix (v5.0 series).

## Hard and soft to use

### hardware

- Seeed XIAO RP2040

- CCS811 (CO2 sensor)?[DF Robot SEN0339](https://wiki.dfrobot.com/CCS811_Air_Quality_Sensor_SKU_SEN0339)

- BME280 (Temperature / Humidity Sensor)?[SSCI-022361](https://www.switch-science.com/catalog/2236/)

- Wiznet W5500 (communication module)?[WIZ850io](http://wizwiki.net/wiki/doku.php?id=products:wiz850io:start)

- SSD1306 (128 * 32 that I had)

### software

- CircuitPython *?[XIAO's WIKI](https://wiki.seeedstudio.com/XIAO-RP2040-with-CircuitPython/)?has UF2 for XIAOR P2040, so use it.

## About the circuit

- Sensors and OLEDs are connected via I2C. * Since the XIAO RP2040 has only one set of I2C PINs, all of them are connected in parallel from the same SDA / SCL PIN on the circuit.

- WizNet W5500 connects with SPI and connects RST with any GPIO PIN.

- All power supplies are connected at 3.3v.

- Since the I2C address of the BME280 sensor used this time is determined by the SDO PIN connection, there is a manual description to connect it to VCC or GND.?This time I will connect it to GND.?(The address will be 0x76)

I referred to the following sites for communication around W5500 and transmission to Zabbix. [Try to grow a wired LAN port on](https://akkiesoft.hatenablog.jp/entry/20211203/1638458921) [Raspberry Pi Pico --Akii Diary Send to Zabbix while using 1-Wire temperature sensor on Raspberry Pi Pico --Akii Diary](https://akkiesoft.hatenablog.jp/entry/20211210/1639062000)

---

Source: https://maker.wiznet.io/taylor/projects/Measure-the-indoor-environment-with-xiao-RP2040-and-sensor-and-send-it-to-zabbix/
