I wanted to measure the house water consumption using the water flow in the water softener system.
The water softener had a built in water flow sensor were i was able to tap on it's outputs.
I then used a schmit trigger stage to shape the pulses before driving an interrupt pin of the AVR.
I also used cat5e to place the AVR far away from the sensor.