Reading Data From Multiple Sensors

You can't define a function, sendValue() inside another function. Get over it.