While the YL-105 handles 5V on the VCC pin, the logic pins (CE, CSN, SCK, etc.) are 3.3V-5V tolerant
Digital TTL signal (0 or 1). Usually, it outputs Low (0V) when an obstacle is detected and High (VCC) when the path is clear. yl-105 datasheet