Sensor at the track
A current-sensing detector, contact track or other sensor detects an electrical state or an event.
How does the layout detect a train? Discover current-sensing detectors, contact tracks and feedback buses, from a first test section to a monitored hidden storage yard.

A track occupancy detector detects whether its monitored section is occupied. Feedback sends this state to a digital command station, control panel or computer control system. This can help prevent a second train being sent into an occupied hidden storage siding, for example. The appropriate control logic must be configured for this to work.
A current-sensing detector, contact track or other sensor detects an electrical state or an event.
The module assigns the report to an input and sends it through the appropriate feedback connection.
The display shows the state. Only configured routes and sequences turn this into the required response.
The sensor and feedback interface may be combined in one device. An ordinary occupancy detector initially reports “occupied” or “clear”, not automatically “locomotive 23 is here”. Identifying a locomotive address within a section requires additional detection, such as a fully compatible RailCom chain. More introductory information: digital control and command stations.
What matters is the track system, the rolling stock to be detected and the information required. Continuous occupancy detection and a brief switching pulse serve different purposes.
| Method | Suitable for | Important limitation |
|---|---|---|
| Current-sensing detector | Detecting occupancy of a powered track section through current consumption. | Rolling stock with insufficient current consumption is not detected. |
| Contact track | Continuous occupancy detection through suitable conductive wheelsets on compatible centre-stud track. | The track must be prepared for this; take insulated wheelsets into account. |
| Reed switch | Detection at a specific point using a magnet on the vehicle. | Does not prove that the entire section is empty. |
| Optical detection or axle counting | Detecting passages or occupancy according to the particular sensor and processing arrangement. | Mounting position, counting logic and recovery after faults are crucial. |
The monitored traction current flows through the detector to the track. A locomotive or illuminated rolling stock can therefore be detected even when stationary, provided its current draw exceeds the detection threshold. A wagon without an electrical load will normally remain invisible. Poor electrical pickup or a switched-off section can also affect the indication. A missing report, or one frozen after a power failure, does not confirm that a section is empty.
Suitable resistor-equipped wheelsets or other specified electrical loads make rolling stock detectable by current sensing. Resistance, power dissipation and the detection threshold must suit the detector and track voltage. Do not use arbitrary universal values. In particular, the rear of the train should be detected reliably if the control system depends on the entire train having left the section.


On suitable centre-stud track, a section of one running rail is electrically isolated from the rest of the return conductor. A suitable conductive wheelset connects it to the other running rail. This allows unlit rolling stock to be detected too. Insulated two-rail wheelsets will not do this without further measures. Modifications, insulating gaps and connections depend on the specific track. In a contact section based on the Märklin C Track example, turnouts and crossings remain outside it; monitoring them requires a separate approach.
“Current sensing” does not automatically mean two-rail, and “digital” does not automatically mean DCC. Current sensing is also used in centre-stud systems. For H0, TT, N and larger gauges, the main considerations are electrical design, permitted voltage, current capacity and rolling stock characteristics.
A reed switch responds to a suitable magnet on the vehicle. It reports while activated but does not monitor the whole block continuously. Optical sensors also need a suitable arrangement. Axle counting requires sensors and processing for entry and exit; after a counting error, the state must be restored in a controlled way. Detecting a single axle does not prove that the section is empty afterwards.


This simplified current-sensing demo compares the visible presence of rolling stock with the report. It assumes traction power is on and that the current drawn by the locomotive or intended additional load reliably exceeds the detector’s threshold.
The locomotive draws enough current. The current-sensing detector reports the section as occupied.
The illustration explains the principle. It is not a wiring diagram and does not replace checking the actual detector. Contact tracks have different requirements: the suitable conductive connection through the wheelset is what matters there.
Before buying, decide where the report needs to go. Connections on the command station, interface and module must be expressly compatible. Identical-looking connectors prove neither identical pin assignments nor the same protocol.
| Feedback connection | Purpose | Check before connecting |
|---|---|---|
| s88 / s88-N | Transmits input states; modules may have contact inputs or current-sensing inputs. | Check the supply, connection direction and adapters. RJ45 is not an Ethernet connection here. |
| R-BUS | Feedback connection used in systems including Z21. | Check the command station, module version, address and required cable. |
| LocoNet | A bus through which compatible devices can also exchange feedback. | Use a suitable command station connection and follow the power supply requirements. |
| CAN / manufacturer-specific system buses | The underlying bus technology, or system connections such as ECoSlink. | Sharing the same underlying bus technology does not make devices from different manufacturers interchangeable. |
RailCom adds information from the decoder to DCC. Local locomotive identification requires the decoder, RailCom cutout, local detector and processing to work together. RailCom does not generally guarantee that every wagon will be detected. Software-based train tracking can use known train assignments without reading a locomotive address in every section.
A specific example: the Roco Z21 detector 10808 sends occupancy states over R-BUS or CAN; the additional RailCom information uses the CAN connection to a compatible Z21. Do not assume that every similarly named module offers these functions. The Z21 product overview helps distinguish between them.



A block is an area managed for train operation. A detection section is the area covered by a sensor. A block may contain one or more detection sections. The number needed depends on the software, direction of travel, braking method and required stopping accuracy. There is no universal rule of “always three detectors per block”.
In a visible station, a platform track can be planned as a block with separate entry and stopping areas. On the open line, several blocks follow one another; the control system checks the next route before authorising movement. In both cases, occupancy information, train length and the configured braking logic must work together. Section boundaries are therefore established before the track is permanently laid.
Assumption: two storage sidings are initially each equipped with one area monitored throughout its length. This produces two occupancy reports. Additional stopping or entry detectors may be required for the chosen control approach. The turnout route must explicitly be included in the plan; it is not automatically monitored by the two storage siding detectors.
Plan the stopping point and usable track length so that the longest intended train fits completely between the turnout areas that must be kept unobstructed. A route must not be released solely because the locomotive has reached the next track. A wagon left behind must remain detectable. For details of the geometry, see planning a hidden storage yard.
With a conventional single-pole current-sensing detector, the monitored rail is isolated at both ends of the section and fed through the specified detector output. The module’s instructions identify the required rail, terminal and reference potentials. Booster boundaries and reversing loops may require additional isolation gaps.
An additional wire directly from the traction power distribution to the monitored rail would bypass the detector. All monitored current for that section must pass through the correct detection channel.
If several feed points are needed, connect them together on the section side of the same detector output. Do not connect outputs from different detectors or boosters together. Follow the device instructions for group supplies and current capacity.
First test the section on its own: empty, with a locomotive, with a wagon, and running across both boundaries. Then connect the neighbouring sections. Clear labels on the track, cables and detector inputs save considerable fault-finding time later.
For reversing loops, the arrangement of the polarity switching module and feedback detector is product-specific. Use wiring examples from the manufacturers involved. For the basic structure, see wiring a model railway and planning booster sections.
Ordinary multimeters cannot assess digital track voltage reliably in every measurement mode. The multimeter guide explains suitable checks and common misinterpretations.


| Symptom | Possible cause | Check first |
|---|---|---|
| Always clear | Current-sensing detector bypassed, load too small or incorrect input assigned. | Test one known locomotive in the section and trace every feed. |
| Always occupied | Conductive bridge, faulty insulation or an active sensor contact. | Remove the rolling stock and disconnect the section from the detector according to the instructions; check the wiring with the power off. |
| Report flickers | Poor electrical pickup, a loose connection or an unsuitable filter setting. | Clean the track and wheels and check the wires; only then adjust delays appropriately. |
| Correct state in the wrong place | Incorrect address, module order or software assignment. | Activate only one input and compare the display with the documentation. |
Always check in the same order: sensor and track, detector input, bus connection, address and finally software assignment. Change only one thing at a time. A correctly sent turnout command does not confirm the turnout’s actual end position; this requires suitable position detection.
Not necessarily. They are useful for monitoring hidden track or indicating occupied areas. For automatic sequences, the required feedback must suit the control approach.
It can, depending on the sensor and device. Current-sensing detectors must suit the power supply in use; detection may fail when traction power is switched off. Contact or optical methods may have different requirements.
Normally, it initially provides information. A suitably configured control system or dedicated circuitry handles braking and stopping. Simple indication and automatic protection are different functions.
Only with an expressly compatible interface and compatible processing. Sensor connections, feedback bus, power supply and required additional functions must be checked together.
First determine the inputs needed from your track plan. Then allow for expansion with further sections and sensors. The right spare capacity depends more on the expansion plan than on a blanket percentage.
Compare suitable modules by manufacturer and model. This selection is a starting point for the topic; always check the sensor type, bus, power supply and functions of the specific version before buying.
Find suitable products through the links to the range.