A light sensor would probably be the cheapest and easiest.
But the bikini thhhing is interesting...