Detect failed serial connection
When using the Conn class it is possible to not connect to the device but everything will act like it is running fine. A check should be done to verify that a connection was properly established. This was noticed when using an incorrect baud rate and the script ran fine but didn't collect any data.