<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 <a href="https
Step1:  Below, the first computation shows that the type K thermocouple emf at 42 °C, with reference junction at 0 °C, is 1.694 mV (compare to NIST table); the second calculation shows how passing in an array applies the function for each element, in the style of numpy
Step2:  An inverse lookup function is provided that you can use to get a temperature out of a measured voltage, including cold junction compensation effects. If we put our type K thermocouple into a piece of spam and we read 1.1 mV, using our voltmeter at room temperature (23 °C), then the spam is at 50 °C.
<ASSISTANT_TASK:>
Python Code:
# First let's install the module
!pip install thermocouples_reference
Explanation: <a href="https://colab.research.google.com/github/agmarrugo/sensors-actuators/blob/master/notebooks/thermocouples_reference_tables.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
Thermocouple reference tables
Andrés Marrugo, PhD   
Universidad Tecnológica de Bolívar
Here we show several examples of using the Python thermocouples_reference that contains calibration data and lookup functions for standard thermocouples of types B, C, D, E, G, J, K, M, N, P, R, S, T, and some less standard types too. For more information on the module go to this link..
Additional reading
Thermocouples
End of explanation
from thermocouples_reference import thermocouples
typeK = thermocouples['K']
print(typeK)
print(typeK.emf_mVC(42, Tref=0))
print(typeK.emf_mVC([-3.14159, 42, 54], Tref=0))
Explanation: Below, the first computation shows that the type K thermocouple emf at 42 °C, with reference junction at 0 °C, is 1.694 mV (compare to NIST table); the second calculation shows how passing in an array applies the function for each element, in the style of numpy:
End of explanation
print(typeK.inverse_CmV(1.1, Tref=23.0))
 # check result
print(typeK.emf_mVC(49.907928030075773, Tref=23.0))
Explanation: An inverse lookup function is provided that you can use to get a temperature out of a measured voltage, including cold junction compensation effects. If we put our type K thermocouple into a piece of spam and we read 1.1 mV, using our voltmeter at room temperature (23 °C), then the spam is at 50 °C.
End of explanation
<END_TASK>