# Code for monitoring sensor's heartbeat

**URL:** <https://www.wago.community/t/code-for-monitoring-sensors-heartbeat/1017>\
**Category:** CODESYS\
**Tags:** edge-controller, codesys\
**Created:** [June 14, 2024, 9:39am UTC](https://www.wago.community/t/code-for-monitoring-sensors-heartbeat/1017 "2024-06-14T09:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![umairyamin](https://avatars.discourse-cdn.com/v4/letter/u/dec6dc/32.png) [@umairyamin](https://www.wago.community/u/umairyamin)\
**Post date:** [June 14, 2024, 9:39am UTC](https://www.wago.community/t/code-for-monitoring-sensors-heartbeat/1017/1 "2024-06-14T09:39:36Z")

</div>

Hi all,  
I am trying to monitor heartbeat of the sensor. The sensor will send signal 1 or 0 as a signal that it is active. And I am currently using Edge Controller, how do I write the code for the sensor to send signal to my PLC. Is there anybody has experience with this? The heartbeat is Y00.  
Thank you in advance.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/e15eda9118ceffc4b80e29863c2213eea33491a7.jpeg)

Best regards,  
Umair
