I need your help in checking my code.Urgent please.

Antony289:
Do I need to change something? Or fix it?

I have absolutely no idea - you're the one with the hardware to test it on.