====== Analog Input Built-in Commands ====== Check the voltage, current or temperature input mode configured for your product and channel first. Reading a raw value and scaling a value serve different purposes. ^ Goal ^ Commands ^ | Read a raw analog value | [[:en-us_commands:reference:analogread|analogRead()]] | | Average multiple samples | [[:en-us_commands:reference:analogreadavg|analogReadAvg()]] · [[:en-us_commands:reference:analogreadavgf|analogReadAvgf()]] | | Scale an input range | [[:en-us_commands:reference:ianalogread|IanalogRead()]] · [[:en-us_commands:reference:ianalogreadf|IanalogReadf()]] | | Read or scale a 4–20 mA input | [[:en-us_commands:reference:analogread2|analogRead2()]] · [[:en-us_commands:reference:ianalogread2|IanalogRead2()]] · [[:en-us_commands:reference:ianalogread2f|IanalogRead2f()]] | | Read NTC or PT100 temperature | [[:en-us_commands:reference:ntcread|ntcRead()]] · [[:en-us_commands:reference:ntcreadf|ntcReadf()]] · [[:en-us_commands:reference:pt100read|pt100Read()]] | On MPAINO, each X analog input channel's DIP setting determines its input mode. Check the [[:en-us_products:mpaino_x|X module details]] for settings and wiring. [[:en-us_commands:builtin|← Built-in command list]]