Smart Sensors in Automated Quality Control Systems