You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2022-08-10 14:00:02.3600694200 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/216
2022-08-10 14:00:02.2120688850 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2510
2022-08-10 13:00:02.4568596480 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2509
2022-08-10 12:00:15.6382258500 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/215
2022-08-10 12:00:01.9302109810 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2508
2022-08-10 11:00:07.1326994030 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2507
2022-08-10 10:48:14.1442906940 cd483a57b0ba007897df50a6e262c06e855c95373ec22648bd65b43efc7544a9/_dev_sdc/9
2022-08-10 10:48:13.8642888320 cd483a57b0ba007897df50a6e262c06e855c95373ec22648bd65b43efc7544a9/_dev_sdb/10
2022-08-10 10:48:13.5242865740 cd483a57b0ba007897df50a6e262c06e855c95373ec22648bd65b43efc7544a9/_dev_sda/10
2022-08-10 10:00:03.0723727650 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/214
2022-08-10 10:00:02.9083715920 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2506
2022-08-10 09:00:02.8917018020 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2505
2022-08-10 08:00:03.1709366470 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/213
2022-08-10 08:00:02.3549289270 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2504
2022-08-10 07:00:02.0847505910 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2503
2022-08-10 06:00:15.2166162300 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/212
2022-08-10 06:00:02.8365382210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2502
2022-08-10 05:00:03.4407840500 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/211
2022-08-10 05:00:02.7767818750 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2501
2022-08-10 04:00:02.6327320520 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2500
2022-08-10 04:00:02.6047315880 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/210
2022-08-10 03:00:02.3300842650 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2499
2022-08-10 02:00:02.4246549220 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/209
2022-08-10 02:00:01.9926530230 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2498
2022-08-10 01:00:02.5583863010 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2497
2022-08-10 00:00:13.6515126710 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/208
2022-08-10 00:00:02.7995018570 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2496
2022-08-09 23:00:02.9151050100 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/207
2022-08-09 23:00:02.3111015140 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2495
2022-08-09 22:00:02.2943155510 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2494
2022-08-09 21:00:03.1003148910 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/206
2022-08-09 21:00:02.1523094160 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2493
2022-08-09 20:00:02.4954422620 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/205
2022-08-09 20:00:02.4754419470 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2492
2022-08-09 19:00:02.4069223420 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2491
2022-08-09 18:00:13.5660769630 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/204
2022-08-09 18:00:02.7259958910 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2490
2022-08-09 17:00:02.0211850040 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2489
2022-08-09 16:00:03.2342729950 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/203
2022-08-09 16:00:02.1382662980 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2488
2022-08-09 15:00:02.6718915260 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2487
2022-08-09 14:00:03.6141379110 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2486
2022-08-09 14:00:03.2901354990 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/202
2022-08-09 13:00:02.2649951780 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/2485
2022-08-09 12:00:13.9741414220 c4589f3f443bb8afef6abff386e54d4a4b85d9c48bfc756bf5cf773c532cb90d/_dev_sda/201