I have a spelling and grammar checker telling me it should be an RCD, thought only an with a e i o and u? Since when has R been a vowel?
As Detlef has said, it is correctly "an" if what follows is a vowel sound.
By far the moist common situation is when what follows is a single letter pronounces as a single letter, and a quite a few of them fall into this category ... F (pronounced 'eff'), H ('aich'), L ('ell'), M ('emm'), N ('enn'), R ('arr'), S ('ess'), X ('exx').
... and it's not just a case of 'silly rules' (or exceptions thereto) - if you don't follow the above,you end up with something which sounds wrong/awkward - try saying "a FCU" or "****" or "a LCD" or "a MCB" or "a NVR switch" or "a SPD" or "a X-ray" (as well, of course, as "a RCD"
).
Much less common, and I think more controversially, many people say that if what follows is A, E, I, O or U, then it should NOT take an "an" if the pronunciation of that letter is not as a 'vowel sound' - for example, they would say that "a universal X" or "a utopian Y" are correct, but that "an universal X" and "an utopian Y" are NOT correct, because the following letter does not have a 'vowel sound'.