title: Raspberry Pi is taking the predefined values using the Python code
body: <pre><code>import RPi_I2C_LCD
  from time import *
  import serial
  import RPi.GPIO as GPIO
  GPIO.setmode(GPIO.BCM)
  GPIO.setup(19,GPIO.OUT)
  GPIO.setwarnings(False)
  
  lcd = RPi_I2C_LCD.LCD()
  
  lcd.set_backlight(True)
  lcd.set_cursor(row=0)
  lcd.message("DINESH SIR")
  lcd.set_backlight(True)
  
  ser=serial.Serial(port='/dev/tty1',baudrate=9600,parity=serial.PARITY_NONE,timeout=1)
  while(True):
      x=ser.read()
      print(x)
      if x=="1" or x=="b":
          GPIO.output(19,True)
          print("on")
          lcd.message("ON")
      else:
          GPIO.output(19,False)
          print("off")
          lcd.set_cursor(row=1)
          lcd.message("OFF")
  </code></pre>
  
  <p>When I'm trying to connect hc-05 bluetooth module with my Raspberry Pi running Raspbian streach OS, then using the above code, I'm getting the output as follows</p>
  
  <pre><code>b ''
  off
  b ''
  off 
  b''
  off 
  b''
  off 
  b''
  off 
  b''
  off 
  b''
  off 
  b''
  off 
  b''
  </code></pre>
  
  <p>and so on executing in a loop.</p>