YES YOU CAN PAINT THE SENSORS, but remember D4P sensors are already factory painted matte black and also incorporate a layer of varnish, so if you are not going to stop black color and be painted it should be sanded the sensor surface prior to painting again. Sensor layer is ALUMINUM because D4P use Digital Sensors and not analog ones.
This is a very typical mistake installers not lose 5 minutes sanding sensors whether to paint, the new paint will cause no grip with the same consistency and also progressively lost the sensor reception quality. REMEMBER SANDED IF PAINTED.
To find any extra information about sensors please check this: