That model of Atwood uses a 'mixing valve' on the backside of WH tank.
Cold water goes in bottom of tank then is heated to 160*F then mixes with cold water at outlet to provide 130*F water. (hot outlet & cold water mixing valve).
That's how you get 16 gallon capacity out of a nominal 10 gallon tank.
When the hot outlet side of mixing valve clogs more cold water is passed and you end up with warm water.
You can remove mixing valve and soak it in vinegar to try and clean it out
OR
Buy new one and replace
OEM Atwood mixing valve.........part #90029 E-Bay for $112
LINKOr purchase a Watts Brand mixing valve (adjustable outlet temp) for $68
LINK
Is it time for your medication or mine?
2007 DODGE 3500 QC SRW 5.9L CTD In-Bed 'quiet gen'
2007 HitchHiker II 32.5 UKTG 2000W Xantex Inverter
US NAVY------USS Decatur DDG31