title: Storing data from arduino in mysql using python on raspberrypi
body: <p>I have referred the code from this link:<a href="http://www.daviom.com/tutorial/tutorial-store-arduino-data-with-raspberry-pi-to-mysql/" rel="nofollow noreferrer">http://www.daviom.com/tutorial/tutorial-store-arduino-data-with-raspberry-pi-to-mysql/</a>
  The arduino code is working correctly however the python code executes by giving the following  output but does not store value in the database , even the tx light on the arduino blinks while the python code is executing but the values are not getting stored in the database </p>
  
  <p><img src="https://i.stack.imgur.com/O3SQj.png" alt="enter image description here"></p>
  
  <p>pls someone help me out as i am new to python </p>
  
  <p>the output after uncommenting  print statement in the python code 
  <img src="https://i.stack.imgur.com/pYQeI.png" alt="enter image description here">  #print("value received:"+string+ " interpreted as: project Id = "+projectId+" and value = "+value)
  is not displaying any  output
  the values from the arduino are inconsistent and the second print statement 
  <img src="https://i.stack.imgur.com/f6Fo7.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/wRWxN.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/8ooBg.png" alt="enter image description here"></p>