# A script to check sensor last update

**URL:** <https://community.homey.app/t/a-script-to-check-sensor-last-update/63142>\
**Category:** Questions & Help\
**Tags:** homeyscript\
**Created:** [April 29, 2022, 7:44am UTC](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142 "2022-04-29T07:44:44Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 7, 2023, 1:47pm UTC](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/26 "2023-07-07T13:47:28Z")

</div>

> [@Sharkys](#):
>
> `tag('notReportingCount', notReportingCount.toString())`

I used this in HS to force a value to be considered numeric, not sure if it works inside the tag arguments

```auto
tag('notReportingCount', Number(notReportingCount)())

```

---

_[View the full topic](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142)._
