Oil level sensor uses the temperature of the oil compared with the coolant temperature. The oil temp should be within a particular range relative to coolant temp. This confirms the oil is draining back into the pan. The PCM monitors all this info and throws codes if conditions are not met.
The system threw a code possibly because cooler oil (fresh oil change) in a hot engine (coolant was hot) made the PCM think the oil was not circulating.
That code is automatically cleared after the engine oil reaches normal operating temp and is shut off for a minimum of one hour.
If the codes are gone now it sounds as though you do not have a problem, and never did. Sounds to me the system was working as designed.
If after a full heating and cooling cycle you are still throwing codes, you may need to get it checked.