Complex sentence: Buzz is caught spying, and turned back to "demo mode" where he thinks he is a real space ranger again and turns against his friends.
Split into simpler sentences: Buzz is caught spying, and turned back to "demo mode". Therefore, he thinks he is a real space ranger again, and turns against his friends.