Wemos A0 does not read voltage

hello, could I see the code you used to read the battery voltage? at the end what was the correct circuit?