IR sensor not showing result on serial monitor
I finally got my answer.

The Max232 ic should be used or a TTL level USB dongle can be used for the serail.print command or other serial commands to work on my own made board because because my programmer does not give me the RX and the TX lines for the TTL level commnunication.