# Directional door sensor

**URL:** https://discourse.nodered.org/t/directional-door-sensor/24551
**Category:** General
**Created:** [9 April 2020 21:12 UTC](https://discourse.nodered.org/t/directional-door-sensor/24551 "2020-04-09T21:12:32Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [17 April 2020 10:29 UTC](https://discourse.nodered.org/t/directional-door-sensor/24551/18 "2020-04-17T10:29:30Z")

</div>

And Paul, @zenofmud, just published a similar solution, in that case for a driveway but it could eventually be used as a base?

> [@Validating Driveway Sensors](https://discourse.nodered.org/t/validating-driveway-sensors/24989/2):
>
> Here is a basic flow you can try - each inject represents one of the two sensors. Both end up conneting to a join however if the second sensor reading doesn't occur within 5 seconds, the first is dumped. After the join you can use the topic to determine the order of the sensors and then use that for the direction the object is moving. [{"id":"dd6ff42c.2f5f88","type":"inject","z":"d18bea89.51692","name":"IR 1","topic":"","payload":"","payloadType":"date"…

---

_[View the full topic](https://discourse.nodered.org/t/directional-door-sensor/24551)._
