title: Raspberry Pi analog read
body: <p>Trying to get the value from Arduino analog pin 0 to be shown as a live value in Tkinter but I'm new to Python.</p>
  
  <pre><code>from Tkinter import *
  import RPi.GPIO as GPIO
  import time
  from pyfirmata import Arduino, util
  from time import sleep
  
  board = Arduino ('/dev/ttyUSB0')
  GPIO.setwarnings(False)
  
   ------------------------BOTTOM of the code----------------------------------
   root = Tk()
   frame = Frame(root,height=500,width=500)
   frame.pack()
   root.title("Relay Controle")
   # Raspsberry output pin 11 / relay
   relayButton = Button(root, text="Turn RELAY On", command=relay)
   relayButton.place(x=10,y=2,)
   # Arduino maga: led button
   ledButton = Button(root, text="Turn LED pin 13 On", command=led )
   ledButton.place(x=130,y=2,)
   # value print out
   # Quit Button
   quitButton = Button(root, text="Quit", command=func1 )
   quitButton.place(x=444,y=470,)
   root.mainloop()
  </code></pre>