A fiber-optic sensor for accurately monitoring biofilm growth in a hydrogen production photobioreactor.