On Earth we have
The energy balance model now gives the following estimate for the average temperature on Earth:
Note that this temperature is measured in Kelvin. It corresponds to around degrees centigrade. This is spot on the measured value given by NASA.
A similar calculation for the Moon (taking ) gives a value of around degrees centigrade. It’s important to note that this is an average estimate. In practice the Moon’s temperature can vary quite widely (between boiling and freezing) because the Moon rotates every 27 days and hence the sunlit periods of on the Moon can last much longer than on the Earth (as long as 13 days) leading to variations between degrees centigrade to degrees centigrade, with an average of - degrees centigrade, which is what we found above.