IoT technology could soon enable smart retail stores capable of competing against today's e-commerce giants.