Metal sensor