Please Help me this function doesn't fire from the periperical?

And the rest of your code ?