Fixed exit bug if no sensors data