On my schematic of the Atwood WH, the limit switches under the foam are as follows. The 2 red wires are from the high limit switch. One of the red wires goes to the gas valves and the other goes to the control bd. The other limit switch is the fixed temp control thermostat and has 2 brown wires, where one brown wire goes to the remote switch and is +12VDC when remote switch is in the on position. The other brown wire goes to the control bd.
On the remote switch there should be 2 white wires attached to terminal 6 and is 12VDC ground. Terminal 4 should have a yellow wire, terminal 2 should have a brown wire, terminal 3 should have a blue wire and is +12VDC.
On the remote switch terminals 2 & 3 are the actual switch.
On the remote switch terminals 4 & 6 are the indicator light built into the switch.
On the remote switch the color of wires on terminals 2 & 3 may be reversed but it doesn't matter as its just a switch.
If you remove the wires from the limit switches and the WH is cool they should read 0 ohms with an ohm meter as they are a normally closed switch and open only when they reach a set temp.
The high limit switch is an emergency cut of switch in case the fixed temp limit switch fails to operate.
Good luck
Happy camping nm1oqrz