sensor reading won't work inside Interrupt function