title: getting data from ibm bluemix into python code
body: <p>I need code for getting data from bluemix which is sent by this code</p>
  
  <pre><code>import RPi.GPIO as GPIO
  import dht11
  import time
  import datetime
  import ibmiotf.device
  
  # initialize GPIO
  GPIO.setwarnings(False)
  GPIO.setmode(GPIO.BCM)
  GPIO.cleanup()
  
  1
  client.connect()
  
  
  
  # read data using pin GPIO4
  instance = dht11.DHT11(pin=4)
  
  while True:
      result = instance.read()
      if result.is_valid():
          print("Last valid input: " + str(datetime.datetime.now()))
          temp=(" %d C" % result.temperature)
          print("temperature:" +temp)
          humid=("%d %%" % result.humidity)
      print("Humidity:" +humid)
         # print("Temperature: %d C" % result.temperature)
         # print("Humidity: %d %%" % result.humidity)
          print("Data is published into the cloued")
          Data={'Temperature' :temp, 'Humidity' :humid }
          client.publishEvent("status", "json", Data)
  
      time.sleep(1)
  </code></pre>