Thank u all for your help
I have solved my problem...The problem was in the arduino.
I tried the same program with an arduino mega that I had and it worked perfectly with it.
Thank u all for your help
I have solved my problem...The problem was in the arduino.
I tried the same program with an arduino mega that I had and it worked perfectly with it.