NEW YORK (AP) — Google will pay $3.2 billion to buy Nest Labs, which develops high-tech versions of devices like thermostats and smoke detectors, in its most expensive acquisition ever.