I got pulse signal that come's in every x miliseconds. Now i want to convert this signal to a continuous signal. So when it receives a pulse it should go on(send a 1) and when there is no pulse detected for 5 seconds it should go off (send a 0).
Is this possible? if so, what kind of nodes do i need?