Could it be for monitoring the trains? For example, checking to see what time the trains go over that particular spot.
I sell automation equipment and we have infrared sensors that do not require a receiver -- they output a signal when they receive a reflection from the target (train).
The sensor may have been placed, but the explosives were going to be added later and connected to the sensor output.