Now that everything is in a function, put this in a "main":
```python
if __name__ == "__main__":
  check_for_device_and_start()
```