sensor handling + debug mode on server