Arduino program problem with DC input

I have attached a diagram for my power supply circuit, hope it is acceptable.