Created sensor polling to ensure scripts aren't run until server is available