The light is off. Five invented readings arrive, 49, 51, 49, 51, 49. With the rule “on at 50 or above, off below 50”, the light changes state four times. Someone watching might imagine four gestures. The numbers contain only a slight fluctuation.
What the lamp is actually doing
Under the term “gesture,” there are already three steps that I could easily confuse. Someone moves their hand, the sensor produces a value, and the program decides to turn on a light. However, if I only receive five numbers, I cannot definitively determine the movement of the hand. It could be almost still, and the signal might fluctuate slightly. Or, it could have moved to an area where the sensor is not very sensitive. The test deliberately eliminates the first step. The numbers are predetermined, so I can discuss what the decision entails without attributing any hesitation to a specific person that I have created.
The one-threshold rule requires five playing cards. I write a value on each card and arrange them in order, keeping a coin nearby to remind me of the state of the light. I only need to check each card to see if the number reaches fifty. If it’s forty-nine, I show the off side, and if it’s fifty-one, I show the on side. Starting with the off side, the first card confirms the initial state, and the next four cards change it. Five observations produce four transitions. Even a simple count can convey two different things if I don’t distinguish between reading and transitioning.
I give the gesture two boundaries. Switching on takes a reading of 52 or more, switching off takes 48 or less. Between them the previous state holds. With the same five values the light stays off. Had it started on, it would have stayed on. This small debt to the past is called hysteresis.
Reading the band between the thresholds
In the adjustable test, the central threshold can be moved, and the semi-width determines how far the two boundaries are from the center. With a center of 50 and a semi-width of 2, the upper limit falls at 52 and the lower limit at 48. The value that falls exactly on the upper limit turns on the light. The value on the lower limit turns it off. In between, the single cards are not enough to decide. You need to turn and look at the coin left by the previous card. Therefore, a sequence of results can only be truly understood if you state from which state you started.
The “light starts on” switch allows you to change the system’s behavior without altering any of the five readings. I would try experimenting with the boundaries at 48 and 52. A row of off states becomes a row of on states. The phenomenon seems paradoxical until you assume that each number already contains the name of its state within itself. In reality, the rule dictates which step that number authorizes. With a reading always within the specified range, it authorizes none. If the example is intended to guide an installation, the question of how to initially turn on the device therefore becomes a central part of the project.
Then I set the semi-width to zero and leave the center fixed. The initial alternation reappears. I increase the semi-width by one unit and follow the five values again. Now, 49 and 51 fall exactly on the two boundaries, so they continue to alternate states. Only by further widening the band do the two readings truly fall within it. This is a small edge case that is also useful for programmers. Saying that the signal must “exceed” the threshold leaves unclear what happens when it reaches it exactly. The answer can be read both in the values and in the behavior of the test.
The initial value is a decision, even when no one has considered it. Let’s assume the system is turned off while the light is on, and then restarted with the reading set to fifty. A version that always restarts from being off would leave the table in darkness. A version that retains the last state could simply turn the light back on when it becomes available again. Both versions correctly apply the limits of forty-eight and fifty-two. The difference lies in what is decided to be remembered through the interruption. If the light is part of an artwork that changes daily, the first visitor in the morning might encounter a continuation of the previous evening, or a fresh, clean scene. Describing the sensor’s behavior without mentioning how the day begins would leave out that particular experience.
| Reading | Threshold 50 | Thresholds 48 and 52 |
|---|---|---|
| 49 | off | off |
| 51 | on | off |
| 49 | off | off |
| 51 | on | off |
| 49 | off | off |

A gesture worth keeping
I use a different sequence, always invented, that goes from 49 to 53 and then only returns to 50. The light turns on at the high limit and remains on after returning to the lower range. The forward and return do not cancel each other out. This property can make an object that needs to withstand a significant pressure and remain stable during a slight loosening, more convenient. It would be uncomfortable if the user expected the light to always reflect the position of their hand. The problem can only be understood by understanding the agreement between the gesture and the response. A stable lamp is a result, while its usefulness depends on the task.
There is also a solution that appears similar to hysteresis, as it only reduces flickering. I could request two consecutive readings above the threshold before turning on, or calculate the average of the last values. In the first case, a relatively high but short pulse can disappear. In the second case, a change in a sample is distributed across multiple readings. With two thresholds, however, a single value that is sufficiently high can immediately change the state. To distinguish between them on the bench, I would test a single, isolated pulse followed by central readings. A fluctuating series, such as that of the reader, clearly shows the common effect, but to choose the rule, it is also necessary to have a case where the alternatives behave differently.
If I were to transition from a simulated test to a real sensor, I would keep the raw reading alongside the decision, at least for the duration of the tests. When faced with a light that no longer reacts, I would want to be able to determine whether the value remained constant, whether it only passed through the center, or whether it actually reached the required boundary. Otherwise, the easiest correction would be to widen and narrow the range through trial and error, attributing the sensor’s error to the program and the user’s error to the sensor itself. A short note indicating the requested gesture and the initial state is worth more than a long recording without any indication of the movement being attempted.
Calming the light has a price. Even an intentional gesture that takes the reading from 49 to 51 now goes unnoticed. Before widening the band further I would want to know the smallest movement the project promises to accept. A motionless lamp might finally be stable, or deaf.
