Plz guide code that Aruduino MEGA can read from ADC converter

But you did attach the code not as a code-section.
Read this tutorial how to attach code as a code-section .

and as a general hint:
If you want to speed up finishing your project
now you should really take 20 minutes of your real expensive time where each minute is worth one million dollars
and finally read

best regards Stefan