in the main routine i read a sensor and a button,but the sensor add many delay at the button reading(without it's perfect)how can i do?