Connect all boxes to circuit.
Connect two lights to circuit.
Set train station circuit to:
enable when: RED less-than or equal-to 0.
read train contents.
Set lights to:
enable-when: ANYTHING greater than 0.
Note: For enabling and disabling train stations it is important to have balancers for unloading.