I have a sensor, that has a PWM signal as output. To get the values, I have to measure the pulse length. The longer a pulse is, the higher the value is.
Whats the best way to measure the pulse? Is it possible by just using a interrupt-capable GPIO? Or are there better ways that do the trick?