Make Arduino Measure Its Own Voltage From Vin

Just for your own reference here is a link to getting the values for a divider: