interfacing a sensor

kavya_mc:
can anyone provide some suggestion?..

Yes several.

  1. Start your own thread with this question.
  2. Learn about arrays.
  3. Learn how to access each element in an array using a for loop.
  4. Think if you need or can have an array entry for every possible input value. Think about interpolating between two entries.