How do I limit transform.LocalEulerAngles.x? [Solved]

This is my code:

public float yAngleLimit, sensitivity;

void Update(){
	float rotationY = -Input.GetAxis ("Mouse Y") * Time.deltaTime * sensitivity;
	transform.localEulerAngles = new Vector3 (transform.localEulerAngles.x + rotationY, 0, 0);	

}

I want to limit on X Rotation. Thanks

transform.localEulerAngles = new Vector3 (Mathf.Clamp(transform.localEulerAngles.x + rotationY, min, max), 0, 0);

?

void Start(){
sensitivity = 0;
tiltAngle = 0;
}
void Update() {
tiltAngle += Input.GetAxis(“Mouse Y”);
transform.rotation = Quaternion.Euler(tiltAngle + Time.deltaTime + sensitivity, 0, 0);
tiltAngle = Mathf.Clamp (tiltAngle, minY, maxY);
}

This is my solution, thanks