Butterfly-inspired hydrogen sensor