Problems reading pulse output

@JohnLincoln

I think this has solved it! This resulted in 7-8 pulses per hour, which corresponds with the expecations of a 7W lamp.

Thank you very much.