[SOLVED] How to read a pulse

Thank you for your help guys, I managed to get it working.
Much appreciated!