*I think an inductive proximity sensor with the nominal range set appropriately on the side of the truck might be more effective, you could have a warning light and alert noise in the drivers cab to show him if some idiot has just trundled up to a stop at his side.
Easy to make stuff, readily available technology, easy to apply and cheap too.*
How you you stop it being set off by railings?
A proximity sensor senses a change in the return field (ie: an inductive sensor is not a metal detector). So it would work something like this, the sensor kicks in a couple seconds after the lorry comes to a stop (numerous cheap and easy ways to implement this).
Then if the return field is disturbed by a change a warning light and noise signals in the drivers cab that something has just sidled up the side of his lorry within the appropriately set nominal range.
*I think an inductive proximity sensor with the nominal range set appropriately on the side of the truck might be more effective, you could have a warning light and alert noise in the drivers cab to show him if some idiot has just trundled up to a stop at his side.
Easy to make stuff, readily available technology, easy to apply and cheap too.*
A proximity sensor senses a change in the return field (ie: an inductive sensor is not a metal detector). So it would work something like this, the sensor kicks in a couple seconds after the lorry comes to a stop (numerous cheap and easy ways to implement this).
Then if the return field is disturbed by a change a warning light and noise signals in the drivers cab that something has just sidled up the side of his lorry within the appropriately set nominal range.