I am beginner to using the Arduino, I use Arduino Uno.
We have one project in which I need to read a voltage of 5V from a sensor that is short about 3ms. When the sensor does not read anything I have 0V and when it reads I have 5V voltage. I need to read that voltage on some pin as a signal and to output 5V as a signal on the other pin and extend it to 50ms.
I need the output signal to be 5V when the sensor gives 5V, and to be 0 when the sensor reads nothing.
Can someone help me?
Thanks in advance.