Validation of a Low-Cost Sensor for Development of Wearable and Handheld Spectrometers