Reuse Of Retired Mobile Devices In Cyber-Physical Systems