Source: https://mokxi.com/learn/path/industrial-sensors
Updated: 2026-11-20

All paths

# Industrial sensors and 4-20 mA

The sensors on a real machine and tank: proximity switches, NPN against PNP, floats, pressure transducers and the 4-20 mA loop that carries a reading across a plant. Ends with a tank controller and every interlock it needs.

Arduino Uno R3 Free 7 lessons 6 h 7 chapters 2,091 XP Electrical · Advanced +250 XP

0 of 7 done

Start the course free Proximity sensors Lesson plan for teachers

What you will build

## 0 projects, built step by step

7 lessons in 7 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Proximity sensors

A box counter, its output, its range, and the four families.

Open 265 XP

### Proximity sensors

An infrared proximity switch counts boxes on a conveyor. What its output does, how its range is set, and which industrial type, inductive, capacitive, photoelectric or ultrasonic, you would fit for each job.

0 of 6 steps

Start What is in it

3 questions, graded as you go.

Chapter 2

## NPN vs PNP

Sinking and sourcing sensors, and the pairing that never turns on.

Locked 303 XP

### NPN vs PNP

Both output stages at 24 V with the PLC inputs they drive: a sinking sensor into a sourcing input, a sourcing sensor into a sinking one, the 5 mA an input card draws, and the wrong pairing that never turns on.

0 of 7 steps

4 questions, graded as you go.

Chapter 3

## Level switches

Floats, off delays, high-water alarms and fail-safe NC contacts.

Locked 303 XP

### Level switches

A sump pump controller with two float switches: pump on at one level, off after a delay, a high-water float that forces the pump on, normally open against normally closed, and a current check that proves the pump really runs.

0 of 7 steps

3 questions, graded as you go.

Chapter 4

## Pressure transducers

Offset and span, psi and bar, and pressure as depth.

Locked 265 XP

### Pressure transducers

A 0 to 100 psi transducer on a water line: 0.5 to 4.5 V ratiometric output, offset and span, psi to bar, and reading the depth of water from the pressure at the bottom of a tank.

0 of 6 steps

4 questions, graded as you go.

Chapter 5

## 4-20 mA loops

Live zero, the receiver, loop resistance and a broken loop.

Locked 303 XP

### 4-20 mA loops

A transmitter, a 24 V supply, a series meter and a 250 ohm receiver. Why a current, why 4 and not 0, what the receiver sees, how much cable a loop can drive, and what a broken loop reads.

0 of 7 steps

4 questions, graded as you go.

Chapter 6

## Scaling

Milliamps to percent to engineering units, and faults that are not numbers.

Locked 288 XP

### Scaling

The same loop into an Uno: milliamps back from the receiver volts, percent of span, and engineering units set by typing a range, including one that does not start at zero, plus a loop fault that refuses to print a number.

0 of 6 steps

4 questions, graded as you go.

Chapter 7

## Boss: a tank controller

Floats, a hatch interlock, pressure and quality checks, your own limit.

Locked 364 XP

### Boss: a tank controller

Fill a tank between two floats with every interlock a real one has: a proximity sensor proving the hatch is shut, a pressure transducer catching a dry run and a blocked discharge, a TDS probe holding off bad water, and a high float wired fail-safe. Then set your own limit.

0 of 8 steps

3 questions, graded as you go.

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Proximity sensors

- Proximity sensors An infrared proximity switch counts boxes on a conveyor. What its output does, how its range is set, and which industrial type, inductive, capacitive, photoelectric or ultrasonic, you would fit for each job.

Chapter 2

### NPN vs PNP

- NPN vs PNP Both output stages at 24 V with the PLC inputs they drive: a sinking sensor into a sourcing input, a sourcing sensor into a sinking one, the 5 mA an input card draws, and the wrong pairing that never turns on.

Chapter 3

### Level switches

- Level switches A sump pump controller with two float switches: pump on at one level, off after a delay, a high-water float that forces the pump on, normally open against normally closed, and a current check that proves the pump really runs.

Chapter 4

### Pressure transducers

- Pressure transducers A 0 to 100 psi transducer on a water line: 0.5 to 4.5 V ratiometric output, offset and span, psi to bar, and reading the depth of water from the pressure at the bottom of a tank.

Chapter 5

### 4-20 mA loops

- 4-20 mA loops A transmitter, a 24 V supply, a series meter and a 250 ohm receiver. Why a current, why 4 and not 0, what the receiver sees, how much cable a loop can drive, and what a broken loop reads.

Chapter 6

### Scaling

- Scaling The same loop into an Uno: milliamps back from the receiver volts, percent of span, and engineering units set by typing a range, including one that does not start at zero, plus a loop fault that refuses to print a number.

Chapter 7

### Boss: a tank controller

- Boss: a tank controller Fill a tank between two floats with every interlock a real one has: a proximity sensor proving the hatch is shut, a pressure transducer catching a dry run and a blocked discharge, a TDS probe holding off bad water, and a high float wired fail-safe. Then set your own limit.

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Industrial sensors and 4-20 mA

Is Industrial sensors and 4-20 mA free?

Yes. All 7 lessons of Industrial sensors and 4-20 mA are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Industrial sensors and 4-20 mA take?

About 6 hours: 7 lessons in 7 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

Where do I start?

With "Proximity sensors", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
