PWM Sensor not working with Photon

Thank you dkryder. Nice setup :-).

Maybe because it is too simple for time critical timing purposes