 #!/usr/bin/env python
          

import serial
import time


ser = serial.Serial(
  
   port='/dev/ttyS0',
   baudrate = 9600,
   parity=serial.PARITY_NONE,
   stopbits=serial.STOPBITS_ONE,
   bytesize=serial.EIGHTBITS,
   timeout=1
)
counter=0
          
      
while 1:
   x = ser.readline()
   print "Received:", x
