Hello meysaminter,
If you want to use the sensor it to check the presence of NH3 in the air then use of a voltage comparator would have been the right choice.
But the word "measure" has changed everything. You need to use ADC with microcontroller.
Now listen:-
MQ-137 contains a variable resistor inside the sensor. The resistance across an A pin and a B pin varies depending on how much NH3 is in the air in the sensor. The more NH3, the lower the resistance.
The trick is, Instead of measuring the resistance directly, we measure the voltage level at the point between the sensor and a load resistor. The sensor and load resistor form a voltage divider, and the lower the sensor resistance, the higher the voltage reading will be. A microprocessor’s (like 16F876A) analog input pin is a good way to measure the voltage and gives us a reading between 0 and 1023. Higher values mean more NH3.
In the given circuit a 10K ohm load resistor is used in series with the sensor resistor.( Though the MQ-137 datasheet says to use a 200K ohm resistor. It’s on purpose.) Make sure you connect all the grounds together.
According to the datasheet the sensor has a 24-48 hour “break in” period. That is, the sensor needs to be turned on for 24-48 hours before the readings become stable.