Heyy , so i'm building a fire fighting robot. Τhe robot is moving autonomously and trying to find a candle. When the program starts it gets a temperature's value and start moving. The order of the movement is forth then right then left and then back to the starting position. The problem that i have is that while it's moving right or left it doesn't detect the change of the temperature . The robot is only detecting the increase of temperature only when it's steady. So, i wanted to ask if that is a problem of my code .
I'm posting the code of my program if someone wants to check it if i got something wrong. I used a touch sensor and a supersonic person to dodge the obstacles.
This is the link for the coding because i can't upload it here . https://drive.google.com/open?id=1j5Lw7X3oEz8Wz7jmjtGCd2TjVQ2ltwKQ