Can we add G-sensor in untiy

Hi everyone, I am trying to build an android app which supports G-sensor. I already search in forum there i got an answer of unity-input. But i can’t get appropriate answer from that can anyone please help me to get rid from this problem.

try looking at Input.acceleration or Gyroscope