SensorBench: Benchmarking LLMs in Coding-Based Sensor Processing