The first thing that you should try out after facing the “TPM device is not detected” error message is to remove the battery from your laptop. This has been reported by several users who were facing the similar issue and disconnecting the laptop's battery has reportedly solved the issue for them.