Cannot read signal from flow meter

An Arduino sketch to read a KWH meter I made once can also be used here, you need to adapt some constants.