Smart sensor in flat pack design with IO-Link