A simple spin coating process can deposit a thin layer of MXene that can be used as a key component in the photodetector devices that enable fiber optic data transmission, LiDAR and many IoT devices.