Ammonia is an essential biomarker for noninvasive diagnosis of liver malfunction. Therefore, selective detection of ammonia is essential for medical application. Here, we demonstrate a portable device to selectively detect sub-ppm ammonia gas. The presented gas sensor is composed of a Pt coating on top of an ultrathin Indium nitrite (InN) epilayer with a lower detection limit of 0.2 ppm, at operating temperature of 200 °C, and detection time of 1 min. The sensor connected with the external filter of nonpolar 500 CS silicone oil to diagnose liver malfunction. The absorption of 0.7 ppm acetone and 0.4 ppm ammonia gas in 10 cc silicone oil is 80% (0.56 ppm) and 21.11% (0.084 ppm), respectively, with a flow rate of 10 cc/min at 25 °C. The absorption of acetone gas is 6.66-fold higher as compared to ammonia gas. The percentage variation in response for 0.7 ppm ammonia and 0.7 ppm acetone with and without silicone oil on InN sensor is 17.5% and 4%, and 22.5%, and 14% respectively. Furthermore, the percentage variation in response for 0.7 ppm ammonia gas with silicone oil on InN sensor is 4.3-fold higher than that of 0.7 ppm acetone. The results show that the InN sensor is suitable for diagnosis of liver malfunction.