code: def main(self, din):
          
          self.shr = self.shr[1:] + [din]
  
          if self.cooldown > 0:
              self.cooldown = self.cooldown - 1
              return False
  
          if self.shr != self.HEADER:
              return False
  
          self.cooldown = self.COOLDOWN_RESET
          return True
docs: :param din: bit in
          :return: True if 100% correlation