The atlas detection circuit could be replaced by this:

Detection is by voltage drop over the diodes (Alt1 to 3). Eagle schema