Can someone help me to improve my code? IR remote control to control Motor

hahahaha, nice point :slight_smile:
No i don't have anything against number 4, i left it for a future function.