When certain sensors are exposed to light, they produce a photocurrent. But using such information limits speed and power efficiency. Researchers developed sensors called spectral kernel machines that convert a photocurrent into object and chemical identification without additional processing.