Artificial Intelligent Sensors The core of Cyber Physical Systems From Theory to Practice