Smart Sensor Design at Software Level