Sensor could help doctors select effective cancer therapy