# Adding sensor to Enviro Indoor

**URL:** <https://forums.pimoroni.com/t/adding-sensor-to-enviro-indoor/21066>\
**Category:** Support\
**Created:** [December 30, 2022, 3:07pm UTC](https://forums.pimoroni.com/t/adding-sensor-to-enviro-indoor/21066 "2022-12-30T15:07:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnhfrancis](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnhfrancis](https://forums.pimoroni.com/u/Johnhfrancis)\
**Post date:** [December 30, 2022, 3:07pm UTC](https://forums.pimoroni.com/t/adding-sensor-to-enviro-indoor/21066/1 "2022-12-30T15:07:32Z")

</div>

I want to add a moisture sensor to an Enviro Indoor using the Qw/St connector. Which file do I need to add code to, to get the device to read the moisture sensor? I can read the sensor using a basic Pico W board but have no idea how the various files on the Indoor module are linked and sequenced.  
Thanks. John

---

<div class="post-metadata">

**Author:** ![dave1979](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dave1979](https://forums.pimoroni.com/u/dave1979)\
**Post date:** [December 31, 2022, 12:44pm UTC](https://forums.pimoroni.com/t/adding-sensor-to-enviro-indoor/21066/2 "2022-12-31T12:44:30Z")

</div>

Hi, you add your code in in the `main.py` just after the line `reading = enviro.get_sensor_readings()`  
then update your readings to` reading` not `readings` like the example shows in the comments. See this for an example

> <https://github.com/pimoroni/enviro/issues/116>
>
> I've tried to get my SCD41 (CO2) sensor to work via the Qw/ST connector, but can…'t seem to get it to work at all.
> 
> Are there any plans for either simplifying the process, or adding documentation to cover this topic?
