Need code to commit an action where it calls automatically based on changes

Hei, i am new to programming and I need help. I need my aurdino GSM to call a given number automatically, every time it notice a change in recistance between two wires. For instance if the ohm goes from 30 to 40, the aurdino should call the number immediately.