The present invention pertains to a glass for vehicles and sensors, which substantially does not contain Li2O and contains components which are SiO2, B2O3, Al2O3, MgO, CaO, SrO, BaO, Na2O, K2O, R'2O, and RO (wherein RO represents the total content of MgO, CaO, SrO, and BaO, and R'2O represents the total content of Na2O and K2O), in specified ranges as expressed in mol% based on oxides. The present invention also pertains to a glass for vehicles and sensors, which contains components which are SiO2, B2O3, Al2O3, MgO, CaO, SrO, BaO, Li2O, Na2O, K2O, R2O, and RO (wherein RO represents the total content of MgO, CaO, SrO, and BaO, and R2O represents the total content of Li2O, Na2O, and K2O), in specified ranges as expressed in mol% based on oxides.