# Extension for the Chirp watering sensor

**URL:** <https://forum.makecode.com/t/extension-for-the-chirp-watering-sensor/1479>\
**Category:** micro:bit\
**Tags:** extension\
**Created:** [March 22, 2020, 11:10am UTC](https://forum.makecode.com/t/extension-for-the-chirp-watering-sensor/1479 "2020-03-22T11:10:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [March 22, 2020, 11:10am UTC](https://forum.makecode.com/t/extension-for-the-chirp-watering-sensor/1479/1 "2020-03-22T11:10:32Z")

</div>

Since we started a small balcony garden with plants in soil and hydroponics, I though to automate some of the watering and monitoring. Although we are at home now, we might soon have to consider an alternative strategy to deal with ‘reminding’ to water the vegetables. The [Chirp](https://www.tindie.com/products/miceuz/chirp-plant-watering-alarm) can be read from I2C so I started an extension:

> **[gbraad/pxt-chirp-sensor](https://github.com/gbraad/pxt-chirp-sensor)**
>
> Extension to read values from the Chirp plant watering alarm over I2C - gbraad/pxt-chirp-sensor

The devices are still on their way (expected to be here in a few days). It also does not automate the initialize yet; the device needs to be read on startup to be forced into sensor mode. Also, it doesn’t deal with a new address. So consider this a work in progress …

> **[Read Chirp value](https://makecode.microbit.org/86454-89992-42125-72858)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/b6c7618574303064a793e45a1670eef65600316d.png)

Note: I know, I have been too lazy to add the block defintions. Told you, it is WIP 😉

---

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [March 23, 2020, 4:35am UTC](https://forum.makecode.com/t/extension-for-the-chirp-watering-sensor/1479/2 "2020-03-23T04:35:28Z")

</div>

> [@gbraad](#):
>
> expected to be here in a few days

They arrived and work …  
 ![](https://pixelfed.social/storage/m/113a3e2124a33b1f5511e531953f5ee48456e0c7/19dc92584914ec557fc762f338ebb32807264507/seCHJ39VEb4ZYMt3uLBqOyJvnA3595hhS96DdViM.png)  
 ![](https://pixelfed.social/storage/m/113a3e2124a33b1f5511e531953f5ee48456e0c7/19dc92584914ec557fc762f338ebb32807264507/GOikfRQr4jqfC6GQOEFmc0c7mVUCp3gvuCGfeGud.png)

… so, now waiting for some angled pinheaders so I can connect them as a sensor.

---

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [March 28, 2020, 4:41pm UTC](https://forum.makecode.com/t/extension-for-the-chirp-watering-sensor/1479/3 "2020-03-28T16:41:29Z")

</div>

![IMG_20200329_001605](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/315ed660c7027703369ee436b3b0f74835bfeff2.jpeg)

Connected, but values aren’t stable. Might be due an unstable i2c connection; chirp can result in need to use timestretching. Will check more in depth, buth likely the i2c version (moisture sensor) should work.
