Probiers doch mit nem Optokoppler?