To what end is this sensing taking place?
Assuming there is some commercial value at risk, you need not answer.
... but do be aware of the perfectly normal circumstance of the rider swerving toward and then away from the curb, stopping, and letting the crown of the road back the bike toward the curb, so as to be parked ready for departure.
Mike Halloran
Pembroke Pines, FL, USA