Arrangements with two photodetectors, the signals of which are compared