old_contents: __author__ = 'sachinpatney'
  
  import serial
  import time
  
  ser = serial.Serial('/dev/ttyUSB0', baudrate=9600, timeout=1.0)
  
  s = b''
  
  while True:
          bytesToRead = ser.inWaiting()
  
          if bytesToRead > 0:
              s += ser.read(bytesToRead)
          else:
              if len(s) > 0:
                  print(s)
              s = b''
              time.sleep(1)
  
new_contents: __author__ = 'sachinpatney'
  
  import serial
  import time
  import binascii
  
  ser = serial.Serial('/dev/ttyUSB0', baudrate=9600, timeout=1.0)
  
  s = b''
  
  while True:
          bytesToRead = ser.inWaiting()
  
          if bytesToRead > 0:
              s += ser.read(bytesToRead)
          else:
              if len(s) > 0:
                  print(binascii.hexlify(s))
              s = b''
              time.sleep(300)
  
subject: update prototype