let a train automatically drive in a station, plant the sensor, set it to manual and drive it out: sensor will keep showing the removed trains inventory
the changes you made to find_entities counterintuitively make sensors not detect entities where a smaller bounding box would
where else? Do you start a fresh game just to test a mod?
I don't care for anything before 0.13. There is a much more versatile sensor in Smarter-Circuitry for 0.12.
The event driven approach is a nice idea, but needs a lot more checks to make sure edge cases don't results in sensors keep reporting disconnected entities or failing to reconnect with new entities.
There was no noticeable update time improvement over polling every 200 ticks.
I have no clue what you mean by smaller. Your version already has 100 lines more than mine, while requiring even more validity checks.
Edit:
Why would you on purpose limit the sensor near trains to the middle instead of using the whole 6 fields per side?
Edit2:
feel free to further discuss this on the forum or via pm, as the mod portal has no notifications.