[SOLVED] How to read a pulse

One Wire?, any sensor needs at least two connections.