programme avoiding working (as long as mqtt is working)