Sketch is not working with Nano perfectly like Mega2560

Hi, I have tried by connecting 10K ohm Pull up resistor but No success :frowning: ... still the same results....