For those who can't commit to a $1,000 mattress (a lot of people, most likely) even if it is high-tech, this much cheaper smart mattress cover called Luna might be the better choice. It's embedded with sensors to detect breathing and heart rate, accelerometers to track sleep patterns and microphones to hear your snoring. The cover then sends data to an Android or iOS app and adjusts temperatures accordingly, depending on your preference. Yep, it heats up or cools down to make you feel comfortable, and it can supposedly even maintain different temperatures on each side of the bed.
Even better, since it's open source, you can make it work with the rest of a connected home, assuming you've been replacing your fixtures and furniture with their internet-connected counterparts. Luna can integrate with Nest, and you can also program it so that your smart door lock activates when you get into bed, or so that the coffeemaker starts brewing as soon as you wake up. It's not exactly available just yet, but it's now open for preorder for $179 a piece.