Miniaturized devices such as microsensors often require an independent, equally miniaturized power supply. Searching for suitable systems, scientists have now developed a fully integrated microfluidic device that produces hydrogen fuel and converts it into electrical energy based on photocatalysis. It works fully autonomously and delivers enough hydrogen energy to power a microsensor for daily data transmission.