When Sensors Lie: Building Trustworthy Cyber-Physical Systems