The invention belongs to the technical field of hydrogen concentration detection and monitoring, and discloses a hydrogen sensor and application thereof. According to the sensor, room-temperature ionic liquid N,N,N-trimethyl-N-sulfobutyl ammonium hydrogen sulfate is used as an electrolyte, and platinum black is used as a catalyst. The response current of the sensor and the concentration of H2 are in a linear relation, and the sensor not only has high sensitivity, good selectivity and fast response recovery, but also has stable performance in a high-humidity environment. The sensor provided by the invention overcomes the problem that an electrochemical gas sensor cannot be applied to high humidity, and has a good potential application prospect on high-temperature and high-humidity ships. Moreover, the sensor does not need an inner support and a liquid storage tank, the structure is more simplified, the size is smaller, an anti-vibration layer is additionally arranged, and the sensor has better firm anti-vibration performance.