Updating deploy script and adding ability to query sensors with only api_key