Du könntest notfalls auch mit einem Optokoppler machen. Dann bist du vom Potential unabhängig.

MfG Hannes