Problem in making voltmeter using offset method

I am trying to make an Arduino voltmeter that can read from -25 to 25 volts. I am using 2.5 volts offset to make A0 input from 5 to 0 volts. In proteus, it is working fine but practically when I try to attach these voltages in series it does not work. any solution for this?
I have attached the schematic.

Capture.PNG

It does not work………. Be more precise. What voltage did You apply and what Reading did You get?
Check "How to use this Forum", hove to attach info. Some members dislike downloading foreign files.

The solution is a three-resistor voltage divider.
One from pin to 5volt, one from pin to ground, and one from pin to the voltage to measure.
In a ratio of 4:5:20 respectively.
Leo..

Indeed.