Sensor for capturing transparent objects