wifi web server that doesn't slow down a robot?

OP is sensing all the time, is it correct? You should run timers to only sense when timer expires and use the rest of the time for server.