Compact Photoelectric Sensors with Synchronous Detection