This work presents an on-chip valve-based microfluidic automation module, capable of performing the complex fluid handling required for photonic biosensors.