old_contents: 
  
  class Captor():
    id = 4
    def Captor():
      self.id = 4
      
      
    def callback(self):
      temperature = 0
      #lance la communication avec le capteur
      
      return temperature
      
    def getiId(self):
      return self.id
  
new_contents: import Adafruit_Python_DHT
  
  pin = 14
  sensor = Adafruit_Pyhon_DHT.DHT22
  
  
  class Captor():
    id = 4
    def Captor():
      self.id = 4
      
      
    def callback(self):
      moisture,temperature = Adafruit_Python_DHT.read(sensor,pin)
      if temperature is None:
        return 0
      return temperature
      
    def getiId(self):
      return self.id
  
subject: complete temperatureCaptor.py with read function