Start with the lenses. Wipe both sensor eyes with a dry cloth - dust and cobwebs cause more false reversals than actual misalignment, and it costs nothing to rule out. Next, look at the small indicator lights on each sensor. Steady means aligned; flickering or off means one sensor has lost its target.
If the lights say misaligned, check the bracket itself before touching the aim. Push on it gently. If it moves independent of the door track, the mounting screws have worked loose in old wood or drywall, and tightening that first often fixes the alignment on its own. If the bracket is solid but the beam still won't line up, loosen the wing nut, sight down the top of the sensor by eye, and nudge it in small amounts, checking the light after each move.
One limitation worth saying plainly: if the bracket or jamb behind it has actually rotted or cracked, no amount of re-aiming will hold. That's a bracket replacement, not an adjustment, and trying to force an alignment on a failing mount just means you'll be back at it in a month.