Add NH3 read function