Fixed EXTI bug in sensor read