:param din: bit in
        :return: True if 100% correlation

def main(self, din):
        """
        :param din: bit in
        :return: True if 100% correlation
        """
        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