# Monitor varmit trap

**URL:** https://f.ruuvi.com/t/monitor-varmit-trap/4213
**Category:** 🇬🇧 Tell about your own use-case
**Created:** [5 June 2020 22:02 UTC](https://f.ruuvi.com/t/monitor-varmit-trap/4213 "2020-06-05T22:02:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dgerman](https://f.ruuvi.com/user_avatar/f.ruuvi.com/dgerman/32/154_2.png) [@dgerman](https://f.ruuvi.com/u/dgerman)
#### Post date: [5 June 2020 22:02 UTC](https://f.ruuvi.com/t/monitor-varmit-trap/4213/1 "2020-06-05T22:02:15Z")

</div>

I balanced a Ruuvi tag on its edge, on the top of the open door of a havahart™ ( HAVe-A-HeART, live capture) trap. As it sits in wait, the Z value of the accelerometer reports .000(+/-.150) (a small value) that is the Ruuvi is on its edge. When the trap is sprung Z reports as 1.000(+/-.150) since the Ruuvi has now fallen flat onto the ground and the Z axis is pointing up or -1.000(+/-.150 if Ruvi landed on its back!  
See photos at [http://mybeacons.info/RuuviTrapReady.html](http://mybeacons.info/RuuviTrapReady.html) and [http://mybeacons.info/RuuviTrapSprung.html](http://mybeacons.info/RuuviTrapSprung.html)

Once you have a Ruuvi and a raspberry Pi (zero w) running Scrin’s **ruuviCollector** it’s easy to write a cron job to periodically use curl to  
`select last(accelerationZ) from ruuvi_measurements where mac='D3517872EC0F'`  
then parse the result and email an SMS message to your cell phone.  
Let me know if you want help with something like this.

See [Pi Zero Ruuvi Gateway implementations](https://f.ruuvi.com/t/pi-zero-ruuvi-gateway-implementations/1262/65) to download a ready-to-run SD card image.
