How to buy smart—and secure—gadgets

The Internet of Things is cool, but it can be risky. Here’s how to protect yourself.