Arduino Mega and sensor voltage

I am using this sensor

Mageway Indoor Retro-Reflective Photoelectric Beam Sensor 12-240VDC 24-240VAC Infrared Sensor Switch Proximity Switch 6FT Cable Induction 4M