You do that like you do it for any normal JS string expression.
The expression
'data.sensors.0.' + sensor
should work.