Write a function to parse and validate structured log data from a simulated hardware sensor.
Implement parse_sensor_logs(lines) where each line contains comma-separated key=value fields for timestamp, sensor, temperature, and status. Return a dictionary containing parsed valid records and the zero-based indices of invalid lines. A valid line has all four unique fields, a nonnegative integer timestamp, a nonempty alphanumeric-or-underscore sensor name, a finite temperature from -100.0 through 200.0, and status OK, WARN, or ERROR.
def parse_sensor_logs(lines):