Measure the voltage of the battery powering MKR

Could not find a solution for the MKR.. is there a way to measure the voltage of the battery supplying the MKR? Just the 1500 and a battery.. that's it.. just wanted to detect and set an alarm when the voltage goes below a certain level. Everything I can find is many years old. Appreciate any insight. . sort of surprised this is not a default function..

The question "measuring battery voltage with Arduino" has been handled tons of times. Search for something like "Arduino + battery measuring".

I did.. 99% of the 'solutions' were focused on typical Arduino lets wire 400 things together to get a measurement. I just have 3.7v lipo battery connected to the jst connector on my MKR 1500.. simplest solution there is :).. just want to get a battery % so I can generate a warning. I think the answer is readAnalog but have not tried yet... thanks for responding.

Using MKR or Arduino makes no difference. Read the explanations, the theory, and apply that to Your board.
If You can't wire anything together You need to invent something totally new.

well, thanks for not helping. When I get it working I will be sure and post so other can leverage.

the doc says this: The battery voltage can also be monitored since a connection between the battery and the analog converter of the board exists... so I assume there is a built in API.. hence asking the question. https://create.arduino.cc/projecthub/Arduino_Genuino/mkr-zero-read-battery-voltage-4853ac

Are You afraid of learning basic theory and develop things on Your own? There are no silver spoons feeding You here.

I see.. ask a simple question that has a simple answer and get a 'we don't spoon feed go figure it out.. .lets all reinvent the wheel every time so we can never advance the industry.. hack city. one reason I think why this stuff is still stuck in hack stage.. Please don't respond to questions if you have nothing helpful.

Please don't ask questions if You're not prepared, or able, to extract knowledge out of answers. Answers here are very seldom "do like this", done and ready.
This forum encourage ambition, learning. It's not a toy factory.

Why/how did Your searches miss that simple solution?

Please don't ever respond to my posts again.... don't need people like you helping.

No, You know "how to"....